<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>用户登录</h1>
<div>
  <h3>
    requedt: <span th:text="${#httpServletRequest.getAttribute('SPRING_SECURITY_LAST_EXCEPTION')}"></span>
    <br/>
    session: <span th:text="${session.SPRING_SECURITY_LAST_EXCEPTION}"></span>
  </h3>
  <form th:action="@{/doLogin}" method="post">
    <div>
      <label>用户名：</label>
      <input type="text" name="name"/>
    </div>
    <div>
      <label>密 码：</label>
      <input type="password" name="pass"/>
    </div>
    <div>
      <input type="submit" value="登录"/>
    </div>
  </form>
</div>
</body>
</html>